﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto
{
    public class MenuDto
    {
        public long id { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        public string MenuUrl { get; set; }

        public MetaDto Meta { get; set; }

        /// <summary>
        /// 状态：0-禁用；1-启用
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int? DisplayOrder { get; set; }

        public List<MenuDto> children { get; set; }

        public List<ActionDto> Action { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsChecked { get; set; }
    }
    public class UserRoleMenuAction
    {
        public long mid { get; set; }

        public List<long?> aids { get; set; }
    }

    public class UserRoleMenus
    {
        public long Id { get; set; }

        public string Path { get; set; }

        public bool AlwaysShow { get; set; }

        public string Title { get; set; }

        public string Icon { get; set; }

        public long? ParentId { get; set; }

        public int? DisplayOrder { get; set; }

        public List<UserRoleMenus> Children { get; set; }
    }
}
